/**********************************
 * @Author: Your Name
 * @LastEditor: Your Name
 * @LastEditTime: 2025-11-07
 * Copyright © 2025 Your Name
 **********************************/

// 设计文件管理相关Mock数据
export const designFileMockData = {
  // 设计文件列表
  files: [
    {
      id: 1,
      name: '产品原型设计.v2.rp',
      description: 'IDP产品原型设计文档',
      fileKey: 'design-files/1-产品原型设计.v2.rp',
      fileSize: 2457600, // 2.4MB
      fileType: 'AXURE_RP',
      fileMd5: 'md5-1',
      version: '2.1',
      tags: [1, 2],
      status: 'NORMAL',
      usedStatus: 'USED',
      securityStatus: 'SAFE',
      lastAccessTime: '2025-03-15T10:30:00.000+08:00',
      ownerId: 1,
      createdBy: 1,
      updatedBy: 1,
      createdAt: '2025-01-15T10:00:00.000+08:00',
      updatedAt: '2025-03-10T14:20:00.000+08:00',
      deletedAt: null,
    },
    {
      id: 2,
      name: '管理系统首页.zip',
      description: '管理系统首页静态页面压缩包',
      fileKey: 'design-files/2-管理系统首页.zip',
      fileSize: 5120000, // 5MB
      fileType: 'HTML_ZIP',
      fileMd5: 'md5-2',
      version: '1.0',
      tags: [1, 3],
      status: 'NORMAL',
      usedStatus: 'USED',
      securityStatus: 'UNSCANNED',
      lastAccessTime: '2025-03-14T16:45:00.000+08:00',
      ownerId: 2,
      createdBy: 2,
      updatedBy: 2,
      createdAt: '2025-02-20T09:15:00.000+08:00',
      updatedAt: '2025-02-20T09:15:00.000+08:00',
      deletedAt: null,
    },
    {
      id: 3,
      name: '用户权限管理.rp',
      description: '用户权限管理模块原型',
      fileKey: 'design-files/3-用户权限管理.rp',
      fileSize: 3686400, // 3.5MB
      fileType: 'AXURE_RP',
      fileMd5: 'md5-3',
      version: '1.2',
      tags: [2],
      status: 'NORMAL',
      usedStatus: 'UNUSED',
      securityStatus: 'SAFE',
      lastAccessTime: '2025-03-12T11:20:00.000+08:00',
      ownerId: 3,
      createdBy: 3,
      updatedBy: 3,
      createdAt: '2025-01-25T13:30:00.000+08:00',
      updatedAt: '2025-03-01T10:15:00.000+08:00',
      deletedAt: null,
    },
    {
      id: 4,
      name: '移动端UI组件库.zip',
      description: '移动端UI组件库静态页面',
      fileKey: 'design-files/4-移动端UI组件库.zip',
      fileSize: 8192000, // 8MB
      fileType: 'HTML_ZIP',
      fileMd5: 'md5-4',
      version: '1.0',
      tags: [4],
      status: 'NORMAL',
      usedStatus: 'USED',
      securityStatus: 'UNSAFE',
      lastAccessTime: '2025-03-16T08:45:00.000+08:00',
      ownerId: 1,
      createdBy: 1,
      updatedBy: 1,
      createdAt: '2025-02-10T15:20:00.000+08:00',
      updatedAt: '2025-02-10T15:20:00.000+08:00',
      deletedAt: null,
    },
  ],

  // 标签列表
  tags: [
    {
      id: 1,
      name: '产品原型',
      color: '#18a058',
      createdBy: 1,
      createdAt: '2025-01-01T00:00:00.000+08:00',
    },
    {
      id: 2,
      name: '权限管理',
      color: '#2080f0',
      createdBy: 2,
      createdAt: '2025-01-05T00:00:00.000+08:00',
    },
    {
      id: 3,
      name: '前端页面',
      color: '#f0a020',
      createdBy: 1,
      createdAt: '2025-01-10T00:00:00.000+08:00',
    },
    {
      id: 4,
      name: '移动端',
      color: '#d03050',
      createdBy: 3,
      createdAt: '2025-02-01T00:00:00.000+08:00',
    },
  ],

  // 安全扫描日志
  securityLogs: [
    {
      id: 1,
      fileId: 1,
      fileType: 'AXURE_RP',
      scanResult: 'SAFE',
      scanDetails: { threats: [], recommendations: ['文件安全，无威胁'] },
      scanTime: '2025-03-10T10:00:00.000+08:00',
      scannedBy: 'SecurityScanner-v1.0',
    },
    {
      id: 2,
      fileId: 4,
      fileType: 'HTML_ZIP',
      scanResult: 'UNSAFE',
      scanDetails: { threats: ['潜在的恶意脚本'], recommendations: ['建议删除文件'] },
      scanTime: '2025-02-15T14:30:00.000+08:00',
      scannedBy: 'SecurityScanner-v1.0',
    },
  ],

  // 文件类型选项
  fileTypeOptions: [
    { name: 'Axure设计文件', value: 'AXURE_RP' },
    { name: 'HTML压缩包', value: 'HTML_ZIP' },
    { name: '其他压缩包', value: 'OTHER_ZIP' },
  ],

  // 权限选项
  permissionOptions: [
    { name: '查看', value: 'VIEW' },
    { name: '下载', value: 'DOWNLOAD' },
    { name: '编辑', value: 'EDIT' },
  ],

  // 用户列表（用于上传者显示）
  users: [
    { id: 1, username: 'admin', nickName: '管理员' },
    { id: 2, username: 'designer1', nickName: '设计师1' },
    { id: 3, username: 'pm1', nickName: '产品经理1' },
  ],
}
